package com.qidian.hw.service;

import com.qidian.hw.pojo.News;
import com.qidian.hw.tools.dto.Pager;

import java.util.ArrayList;

/**
 * @Author ꒰ঌ(李ᆺ琛)໒꒱
 * @Date 2022/8/19 20:04
 * @Version 1.8
 */
public interface NewsService {
    //添加新闻
    int saveNews(News news);

    //删除新闻
    int deleteNews(long newsId);

    //更新新闻
    int updateNews(News news);

    //查询全部新闻
    ArrayList<News> listNews();

    //根据编号查询新闻
    News queryNewsById(long newsId);

    //分页模糊查询
    Pager queryByPage(int page, int size, String title);

    //批量删除
    int deleteBatch(String ids[]);
}
